package com.wondersgroup.hs.mobile.report.support.dataSource;

import com.wondersgroup.hs.mobile.his.api.dto.QueryHisPatientReq;
import com.wondersgroup.hs.mobile.his.api.model.HisPatient;

import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

/**
 * Created by zarra on 2016/12/28.
 */
public class HisPatientDemoDS extends RestServiceDS<QueryHisPatientReq,HisPatient> {
    @Override
    public Collection<HisPatient> fetchDataPrivate(QueryHisPatientReq queryHisPatientReq) throws Exception {
        List<HisPatient> patients = new LinkedList<>();

        int i = 100000;
        patients.add(new HisPatient(String.format("%06d",i++),"a"));
        patients.add(new HisPatient(String.format("%06d",i++),"b"));
        patients.add(new HisPatient(String.format("%06d",i++),"c"));
        patients.add(new HisPatient(String.format("%06d",i++),"d"));
        patients.add(new HisPatient(String.format("%06d",i++),"e"));

        return patients;
    }
}
